package com.itzhanshen.auth.entity;

/**
 * 存储集成认证信息对象
 */
public class RequestParamsThreadLocal {
    private static ThreadLocal<IntergrationAuthenticationEntity> ENTITY_LOCAL = new InheritableThreadLocal<>();
    // 获取
    public static IntergrationAuthenticationEntity get() {
        return ENTITY_LOCAL.get();
    }
    // 添加
    public static void set(IntergrationAuthenticationEntity entity) {
        ENTITY_LOCAL.set(entity);
    }
    // 删除
    public static void remove() {
        ENTITY_LOCAL.remove();
    }
}
